﻿Imports DAO
Imports DTO

Public Class HoaDon_BUS
    Public Shared Function LapHoaDon(ByVal hoadon As HoaDon_DTO) As Integer
        Dim flag As Integer = HoaDon_DAO.LapHoaDon(hoadon)
        Return flag
    End Function

    Public Shared Function NhapChiTietHoaDon(ByVal cthoadon As CT_HoaDon_DTO) As Integer
        Dim flag As Integer = HoaDon_DAO.NhapChiTietHoaDon(cthoadon)
        Return flag
    End Function


    Public Shared Function LoadHoaDon() As DataTable
        Return HoaDon_DAO.LoadHoaDon()
    End Function


#Region "Load chi tiết hóa đơn theo mã HD"
    Public Shared Function LoadPhieuNhapTheoMa(ByVal ma As Integer) As DataTable
        Return HoaDon_DAO.LoadPhieuNhapTheoMa(ma)
    End Function
#End Region
End Class
